package com.senlingspace.web.controller.headquarters;

import com.senlingspace.common.core.controller.BaseController;
import com.senlingspace.common.core.page.TableDataInfo;
import com.senlingspace.system.domain.vo.OrderSplitRequest;
import com.senlingspace.system.domain.vo.OrderSplitResponse;
import com.senlingspace.system.service.OrderSplitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/*数据报表相关*/
@RestController
@RequestMapping("/system/report")
public class SlkjOrderSplitController extends BaseController {

    @Autowired
    private OrderSplitService orderSplitService;

    /*
     * 票档日结算明细表
     * */
    @PreAuthorize("@ss.hasPermi('system:report:splitList')")
    @GetMapping("/split/list")
    public TableDataInfo queryOrderSplitData(OrderSplitRequest orderSplitRequest) {

        List<OrderSplitResponse> response = orderSplitService.getOrderSplitData(orderSplitRequest);
        return getDataTable(response);
    }
}